package sardine.function;

import sardine.Request;
import sardine.Response;

/**
 * 过滤器
 *
 * @auth bruce-sha
 * @date 2015/5/21
 */
@FunctionalInterface
public interface Filter {

    void apply(Request request, Response response) throws Exception;

    @FunctionalInterface
    public static interface VFilter {
        void apply() throws Exception;
    }

}
